﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B2F RID: 2863
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MissionCustomValue : IMessage<MissionCustomValue>, IMessage, IEquatable<MissionCustomValue>, IDeepCloneable<MissionCustomValue>, IBufferMessage
	{
		// Token: 0x17002423 RID: 9251
		// (get) Token: 0x06008015 RID: 32789 RVA: 0x00155C14 File Offset: 0x00153E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MissionCustomValue> Parser
		{
			get
			{
				return MissionCustomValue._parser;
			}
		}

		// Token: 0x17002424 RID: 9252
		// (get) Token: 0x06008016 RID: 32790 RVA: 0x00155C1B File Offset: 0x00153E1B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MissionCustomValueReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002425 RID: 9253
		// (get) Token: 0x06008017 RID: 32791 RVA: 0x00155C2D File Offset: 0x00153E2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MissionCustomValue.Descriptor;
			}
		}

		// Token: 0x06008018 RID: 32792 RVA: 0x00155C34 File Offset: 0x00153E34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValue()
		{
		}

		// Token: 0x06008019 RID: 32793 RVA: 0x00155C3C File Offset: 0x00153E3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValue(MissionCustomValue other) : this()
		{
			this.index_ = other.index_;
			this.customValue_ = other.customValue_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600801A RID: 32794 RVA: 0x00155C6D File Offset: 0x00153E6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValue Clone()
		{
			return new MissionCustomValue(this);
		}

		// Token: 0x17002426 RID: 9254
		// (get) Token: 0x0600801B RID: 32795 RVA: 0x00155C75 File Offset: 0x00153E75
		// (set) Token: 0x0600801C RID: 32796 RVA: 0x00155C7D File Offset: 0x00153E7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x17002427 RID: 9255
		// (get) Token: 0x0600801D RID: 32797 RVA: 0x00155C86 File Offset: 0x00153E86
		// (set) Token: 0x0600801E RID: 32798 RVA: 0x00155C8E File Offset: 0x00153E8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CustomValue
		{
			get
			{
				return this.customValue_;
			}
			set
			{
				this.customValue_ = value;
			}
		}

		// Token: 0x0600801F RID: 32799 RVA: 0x00155C97 File Offset: 0x00153E97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MissionCustomValue);
		}

		// Token: 0x06008020 RID: 32800 RVA: 0x00155CA5 File Offset: 0x00153EA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MissionCustomValue other)
		{
			return other != null && (other == this || (this.Index == other.Index && this.CustomValue == other.CustomValue && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008021 RID: 32801 RVA: 0x00155CE4 File Offset: 0x00153EE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this.CustomValue != 0U)
			{
				num ^= this.CustomValue.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008022 RID: 32802 RVA: 0x00155D3C File Offset: 0x00153F3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008023 RID: 32803 RVA: 0x00155D44 File Offset: 0x00153F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008024 RID: 32804 RVA: 0x00155D50 File Offset: 0x00153F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CustomValue != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CustomValue);
			}
			if (this.Index != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Index);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008025 RID: 32805 RVA: 0x00155DAC File Offset: 0x00153FAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this.CustomValue != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CustomValue);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008026 RID: 32806 RVA: 0x00155E04 File Offset: 0x00154004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MissionCustomValue other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			if (other.CustomValue != 0U)
			{
				this.CustomValue = other.CustomValue;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008027 RID: 32807 RVA: 0x00155E54 File Offset: 0x00154054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008028 RID: 32808 RVA: 0x00155E60 File Offset: 0x00154060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Index = input.ReadUInt32();
					}
				}
				else
				{
					this.CustomValue = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003101 RID: 12545
		private static readonly MessageParser<MissionCustomValue> _parser = new MessageParser<MissionCustomValue>(() => new MissionCustomValue());

		// Token: 0x04003102 RID: 12546
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003103 RID: 12547
		public const int IndexFieldNumber = 14;

		// Token: 0x04003104 RID: 12548
		private uint index_;

		// Token: 0x04003105 RID: 12549
		public const int CustomValueFieldNumber = 2;

		// Token: 0x04003106 RID: 12550
		private uint customValue_;
	}
}
